<?php
/*
文件名:news.index.html
编译日期:2013-08-14 14:20:06
文件大小:3.083KB
作者:边缘狂人, QQ:124181646*/
?><?php include(APP_PATH."data/compile/admin^header.inc.html"); ?>
<script>
function del(sid)
{
	if(!confirm('<?php echo $lang["comm"]["delete_alert"];?> 一旦删除,无法恢复')){
		return false;
	}
	$.post('<?php echo __smarty__url(array('m'=>"dodel")); ?>',{id:sid},function(data){
			/*alert('<?php echo $lang["sys"]["ok"];?>');			
			alert(data);*/
			self.location.reload();			
	});	

}
</script>


<div class="list-div" id="listDiv">
  <table cellpadding="3" cellspacing="1">
  
  	<tr><th style="text-align:left;"><?php echo $lang["comm"]["search"];?></th></tr>
  	<tr><td>
<form action="<?php echo __smarty__url(array()); ?>" method="get">
                   
                    <input type="hidden" name="c" value="<?php echo $this->c;?>"/>
                    <input type="hidden" name="m" value="<?php echo $m;?>"/>
                       <?php $this->html_select(array('options'=>$navs,'value'=>$nav_id,'name'=>nav_id,'default'=>'所有分类'));  echo $lang["comm"]["search"];?>: <input type="text" value="<?php echo $keyword;?>" id="keyword" name="keyword" ondblclick="this.value=''"/>
                         
                          <input type="submit" value="<?php echo $lang["comm"]["submit"];?>" />
  </form>  	
  	</td></tr>
  </table>  
</div>


<span style="float:right;;">
  <input type="button" value="<?php echo $lang["comm"]["add"];?>" onclick="self.location.href='<?php echo __smarty__url(array('m'=>'add')); ?>'" class="button"/>
</span>
<div style="clear:both"></div>


<form action="<?php echo __smarty__url(array('m'=>'dosetup')); ?>" method="post"  onSubmit="return Validator.Validate(this,2)">

<div class="list-div" id="listDiv">


  <table cellpadding="3" cellspacing="1">
    


	<tr>
        <th  class="td1">序号</th> 
        <th  class="td1">所在分类</th> 
        <th  class="td1">标题</th> 
        <th  class="td1">添加时间</th> 
       <th  class="td1">点击次数</th> 
        <th  class="td1">操作</th> 
     </tr> 

	
	<?php foreach( $rs as $k => $v){?>
	 <tr id="tr_<?php echo $v["id"];?>">
        <td  class="td1"><?php echo $v["id"];?></td> 
        <td  class="td1"><?php echo $navs[$v['nav_id']];?></td> 
         <td  class="td1"><a href="<?php echo $this->url($v['module_tag'],$v['id']);?>" target="_blank"><?php echo $v["title"];?></a></td> 
        <td  class="td1"><?php echo date('Y-m-d H:i:s',$v['time']);?></td> 
        <td  class="td1" title="蜘蛛点击/用户访问"><?php echo $v["spider_hit"];?>/<?php echo $v["hit"];?></td> 
		
		
		<td  class="td1">
		
		<a href='<?php echo __smarty__url(array('m'=>'edit','id'=>$v['id'])); ?>'><?php echo $lang["comm"]["edit"];?></a>
		&nbsp;
		<a href='<?php echo __smarty__url(array('m'=>'dodel','id'=>$v['id'])); ?>' onclick='return confirm("您确认删除吗?")'><?php echo $lang["comm"]["delete"];?></a>

		</td> 
		 
     </tr> 

	 <?php } ?>

	
	 
	

	 
	
     
   
  </table>
</div>	  
</form>
<div><?php echo $page["stat"]; echo $page["page"];?></div>

  


<?php include(APP_PATH."data/compile/admin^footer.inc.html"); ?>